package com.ruoyi.web.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Map;

@Data
@TableName(value = "mes_report")
public class Report extends BaseReport{
    @TableId
    private String id;
    /** 报工单编码 */
    private String code;
    /** 报工日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reportDate;
//    /** 报工机台id */
//    private String machineId;
    /** 报工机台名称 */
    private String machineName;
    /** 报工机台类型 (手机端用)*/
    @TableField(exist = false)
    private String machineType;
    /** 机长id */
    private String headId;
    /** 机长名称 */
    private String headName;
    /** 当班日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dutyDate;
    /** 报工类型 1印刷报工 2折页报工 3裁切报工 4覆膜报工 5装订报工 6其他报工 */
    private String type;
    /** 状态 */
    private int status;
    /** 备注 */
    private String remark;
    /** 创建人 */
    private String createBy;
    /** 创建时间 */
    private Date createTime;
    /** 更新人 */
    private String updateBy;
    /** 更新时间 */
    private Date updateTime;
    @TableField(exist = false)
    private String wagesPiece;
    @TableField(exist = false)
    public String searchDate;
    @TableField(exist = false)
    public String produceId;
    @TableField(exist = false)
    public String produceNo;
    @TableField(exist = false)
    public String workshopName;
    @TableField(exist = false)
    public String printAmount;
    @TableField(exist = false)
    public String pubNo;
    @TableField(exist = false)
    public String breed;
    @TableField(exist = false)
    public String machineTypeName;


    private Long createById;

    @TableField(exist = false)
    private Map<String, String> params;
    @TableField(exist = false)
    private Date beginDate;
    @TableField(exist = false)
    private Date endDate;
    @TableField(exist = false)
    private String startDateTime;
    @TableField(exist = false)
    private String endDateTime;
    @TableField(exist = false)
    private String workshopId; // 车间ID
    @TableField(exist = false)
    private String expectLing;
}
